package com.huanletao.httpclient;

import java.util.HashMap;
import java.util.Map;

public class Main {
    public static void main(String[] args) throws Exception {
        HttpClientUtil.HttpResult httpResult = HttpClientUtil.doGet("http://www.baidu.com");

        System.out.println("httpResult = " + httpResult.getBody());


        String url = "http://localhost:8080/api/tet";
        Map<String, Object> body = new HashMap<>();
        body.put("uuid","dfsdf");
        Map<String, String> headers = new HashMap<>();
        headers.put("token","ssdfsdf");
        HttpClientUtil.doPostJson(url,body,headers);

    }
}
